﻿@inherits LayoutComponentBase
@inject NavigationManager Navigation
<Layout Style="min-height: 100vh;background-color:white; ">
	<Sider Collapsible Collapsed=@collapsed OnCollapse=@onCollapse>
        <Menu Theme="MenuTheme.Dark" DefaultSelectedKeys=@(new[]{"1"}) Mode="MenuMode.Inline">
            <MenuItem OnClick="SeeReview" Key="1">
                <Icon Type="form" Theme="outline"/>
                <span>待审核列表</span>
            </MenuItem>
            <MenuItem OnClick="SeeHistory" Key="2">
                <Icon Type="check" Theme="outline"/>
                <span>已审核列表</span>
            </MenuItem>
        </Menu>
    </Sider>
	<div style="padding:30px;width:100%">
		@Body
	</div>
</Layout>
@code{
    public void SeeReview()
    {
        Navigation.NavigateTo("/RecordReview");
    }
    public void SeeHistory()
    {
        Navigation.NavigateTo("/RecordReviewHistory");
    }


    bool collapsed;

    void onCollapse(bool collapsed) {
        this.collapsed = collapsed;
    }
}